package cn.com.api.service.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_news;

/**
 * 
 */
@Service
public interface T_newsServiceBase {

	//根据id查看
	public ApiT_news findT_newsById(Integer id);
	
    //查看数据集
	public List<ApiT_news> findT_newss();
    
	//添加
 	public int insertT_news(ApiT_news t_news);
  	
	//修改
    public int updateT_news(ApiT_news t_news);
    
    //删除
    public int deleteT_news(Integer id);
    
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    //获取根据ctype	
    public List<ApiT_news> findT_newssByCtype(String ctype);
    		
    //获取根据titles	
    public List<ApiT_news> findT_newssByTitles(String titles);
    		
 
}


